﻿using System;
using System.Web;
using ToyStore.Domain.Contracts.Tasks;
using ToyStore.Domain.Store;
using ToyStore.Tasks;

namespace ToyStore.Web.Mvc.Common
{
	public class Helper
	{
		public static Cart GetCartFromSession(HttpSessionStateBase session)
		{
			if (session[CartTask.CartSessionGuid] != null)
			{
				return (Cart)session[CartTask.CartSessionGuid];
			}

			return null;
		}
	}
}